package net.pinnoocle.playcommon.constant;

/**
 * @author ye
 * @Description
 * @create 2021-10-19 18:15
 */
public interface Constant {

    // 请求头参数
    String AUTHORIZATION = "Token";

    //请求头参数
    String SHOP_WECHAT_ID = "ShopWechatId";

    //推荐首页的偏移量
    Integer HOMEPAGE_PAGE_SIZE = 6;

    //排行榜
    Integer TOP_NUM = 5;

    //定金金额
    Double APPOINT_AMOUNT = 0.01;

    // 小程序授权接口地址
    String APPLET_AUTH_URL = "https://api.weixin.qq.com/sns/jscode2session?appid={0}&secret={1}&js_code={2}&grant_type=authorization_code";

    // 小程序获取access_token接口地址
    String APPLET_ACCESS_TOKEN_URL = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid={0}&secret={1}";

    String BASE_AD_DOMAIN = "https://shop.julaike.vip/play/";

    //定金支付回调地址
    String APPOINT_NOTIFY_URL = BASE_AD_DOMAIN + "common/appointOrderNotify";

    //订单回调地址
    String ORDER_NOTIFY_URL = BASE_AD_DOMAIN + "common/orderNotify";

    //第三方平台授权回调地址
    String AUTH_REDIRECT_URI = BASE_AD_DOMAIN + "common/authRedirectUri";

    //小程序二维码
    String getWxUnlimitedCode = "https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token={0}";

    //第三方平台代登录
    String APPLET_AUTH_THIRD_URL = "https://api.weixin.qq.com/sns/component/jscode2session?appid={0}&js_code={1}&grant_type=authorization_code&component_appid={2}&component_access_token={3}";
}
